#!/usr/bin/env bash

NODE_EXE="$( dirname ${BASH_SOURCE[0]} )/node.exe"

if [ -t 0 -a -t 1 ]; then
  /usr/bin/winpty $NODE_EXE "$@"
else
  exec $NODE_EXE "$@"
fi
